﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Diagnostics;
using RiskMan.Config;

namespace RiskMan.Views.AboutFrom
{
    /// <summary>
    /// Логика взаимодействия для About.xaml
    /// </summary>
    public partial class About : Window
    {
       
        public About ( )
        {
            InitializeComponent( );
            labelCountLisence.Content = Convert.ToString(MainWindow.countLisence);
            labelDateEndLicense.Content = RiskMan.Config.Register.dataEndLicense;
            labelTypeVersion.Content = RiskMan.Config.Register.typeVersion;
            label3.Content = "v " + System.Reflection.Assembly.GetExecutingAssembly( ).GetName( ).Version;
            textBox1.Text = cfg.GetID( ) + cfg.GetMacAddress( );
        }

        private void label5_MouseMove ( object sender, MouseEventArgs e )
        {

        }

        private void label5_MouseWheel ( object sender, MouseWheelEventArgs e )
        {
            
        }

        /// <summary>
        /// http://rbkm.ru
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void label5_MouseUp ( object sender, MouseButtonEventArgs e )
        {
            Process.Start( "http://rbkm.ru" );
        }
        
        /// <summary>
        /// http://rbkm-rm.reformal.ru/
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void label6_MouseUp ( object sender, MouseButtonEventArgs e )
        {
            Process.Start( "http://rbkm-rm.reformal.ru/" );
        }

        private void Window_Loaded ( object sender, RoutedEventArgs e )
        {
            
        }


    }
}
